package com.cs.contract.controller;

import com.cs.contract.service.CsOperatorService;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：zrx
 * @Package：com.cs.controller
 * @Project：RuoYi-Cloud
 * @name：CsOperatorController
 * @Date：2024/11/21 15:01
 * @Filename：CsOperatorController
 */
@RestController
@RequestMapping("/operator")
public class CsOperatorController extends BaseController {
    private final CsOperatorService csOperatorService;

    public CsOperatorController(CsOperatorService csOperatorService) {
        this.csOperatorService = csOperatorService;
    }

    @GetMapping("/getInfoByHid")
    public AjaxResult getInfoByHid(Integer hid) {
        return success(csOperatorService.getCsOperatorByHid(hid));
    }
}
